//
//  ViewController.h
//  myhuibao
//
//  Created by lijun on 13-2-4.
//  Copyright (c) 2013年 myhuibao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WQTableViewController.h"
#import "LeveyPopListView.h"
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"
#import "RequestLoadingView.h"

@interface BoxSearchViewController : WQTableViewController <WQTableViewDelegate,LeveyPopListViewDelegate>
{
    int pageIndex;
    int returnCount;
    NSMutableArray *arrayOrderBy;
    NSString *orderBy;
    bool isShowed;
    bool isSearchFinished;
    bool isSearchMoreFinished;
    bool isAreaFinished;
    bool isCuisineFinished;
    bool isConsumeFinished;
    int selectIndex;
    int _selectedIndex,_selectedIndex1,_selectedIndex2,_selectedIndex3;
    int _selectedTypeIndex,_selectedTypeIndex1;
    int cityId;
    int areaId;
    
    RequestLoadingView *loadingView;
}
@property (strong, nonatomic) IBOutlet UITableView *mainTable;
@property (assign) int cityId;
@property (assign) int areaId;
@property (strong,nonatomic) NSString *diningDate;
@property (assign) int diningTime;
@property (assign) int boxType;
@property (assign) int capacity;
@property (assign) int cuisineId;
@property (assign) int avgConsumeID;
@property (assign) int _selectedIndex;
@property (assign) int _selectedTypeIndex;
@property (strong,nonatomic) NSString *areaName;

@property (strong, nonatomic) NSMutableArray *arrayArea;
@property (strong, nonatomic) NSMutableArray *arrayDistrict;
@property (strong, nonatomic) NSMutableArray *arrayCuisine;
@property (strong, nonatomic) NSMutableArray *arrayCuisineType;
@property (strong, nonatomic) NSMutableArray *arrayConsume;
@property (unsafe_unretained) ASIHTTPRequest *reqArea;
@property (unsafe_unretained) ASIHTTPRequest *reqCuisine;
@property (unsafe_unretained) ASIHTTPRequest *reqConsume;
@property (strong, nonatomic) IBOutlet UILabel *lbArea;
@property (strong, nonatomic) IBOutlet UILabel *lbCuisine;
@property (strong, nonatomic) IBOutlet UILabel *lbConsume;

@property (strong, nonatomic) IBOutlet UILabel *lbAddress;
@property (unsafe_unretained) ASIFormDataRequest *reqSearch;
@property (unsafe_unretained) ASIFormDataRequest *reqSearchMore;
- (IBAction)showSort:(id)sender;
@property (strong, nonatomic) IBOutlet UILabel *lbTips;
- (IBAction)doBack:(id)sender;
- (IBAction)showMap:(id)sender;
- (IBAction)showArea:(id)sender;
- (IBAction)showCuisine:(id)sender;
- (IBAction)showConsume:(id)sender;

@end
